home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / Direct3D / EffectEdit / OptionsView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  2.2 KB  |  84 lines

  1. #if !defined(AFX_OPTIONSVIEW_H__93AE1BE4_0D08_429E_9A48_22E073A11943__INCLUDED_)
  2. #define AFX_OPTIONSVIEW_H__93AE1BE4_0D08_429E_9A48_22E073A11943__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // OptionsView.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // COptionsView form view
  12.  
  13. #ifndef __AFXEXT_H__
  14. #include <afxext.h>
  15. #endif
  16.  
  17. class CEffectDoc;
  18.  
  19. class COptionsView : public CFormView
  20. {
  21. protected:
  22.     COptionsView();           // protected constructor used by dynamic creation
  23.     DECLARE_DYNCREATE(COptionsView)
  24.  
  25. // Form Data
  26. public:
  27.     //{{AFX_DATA(COptionsView)
  28.     enum { IDD = IDD_OPTIONS_FORM };
  29.         // NOTE: the ClassWizard will add data members here
  30.     //}}AFX_DATA
  31.  
  32. // Attributes
  33. public:
  34.     CEffectDoc* GetDocument();
  35.  
  36. // Operations
  37. public:
  38.     void SetTechniqueNameList( CStringList& techniqueNameList, int iTechniqueCur);
  39.     void SetPassNameList( CStringList& passNameList, int iPassCur);
  40.  
  41. // Overrides
  42.     // ClassWizard generated virtual function overrides
  43.     //{{AFX_VIRTUAL(COptionsView)
  44.     public:
  45.     virtual void OnInitialUpdate();
  46.     protected:
  47.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. protected:
  52.     virtual ~COptionsView();
  53. #ifdef _DEBUG
  54.     virtual void AssertValid() const;
  55.     virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57.  
  58.     // Generated message map functions
  59.     //{{AFX_MSG(COptionsView)
  60.     afx_msg void OnSize(UINT nType, int cx, int cy);
  61.     afx_msg void OnChangeTechnique();
  62.     afx_msg void OnChangePass();
  63.     afx_msg void OnShowStats();
  64.     afx_msg void OnFillModeChange();
  65.     afx_msg void OnChangeRenderPass();
  66.     afx_msg void OnResetCamera();
  67.     afx_msg void OnChangeRenderTiming();
  68.     afx_msg void OnRender();
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. #ifndef _DEBUG  // debug version in OptionsView.cpp
  74. inline CEffectDoc* COptionsView::GetDocument()
  75.    { return (CEffectDoc*)m_pDocument; }
  76. #endif
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.  
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82.  
  83. #endif // !defined(AFX_OPTIONSVIEW_H__93AE1BE4_0D08_429E_9A48_22E073A11943__INCLUDED_)
  84.